{$header}
<tagLib name="html" />
<div id="main" class="main" >
<!-- 主体内容  -->
<div class="content" >
<!--  功能组区域  -->
<div class="btn-toolbar">
	<div class="btn-group">
	<!--
		<button class="btn btn-primary" onclick="edit()">
			<i class="icon-edit icon-white"></i>
			编辑
		</button>
		<button class="btn btn-primary" onclick="foreverdel()"> <i class="icon-trash icon-white"></i>
			删除
		</button>
		-->
	</div>
	<form class="search-form pull-right" method='get' action="__URL__">
	发货时间：从<input type="text" class="span2"  name="start_time" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" value="<notempty name='_REQUEST.start_time'>{$_REQUEST.start_time}</notempty>">
		到<input type="text" class="span2" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="end_time" id="end_time" value="<notempty name='_REQUEST.end_time'>{$_REQUEST.end_time}</notempty>" >

		经办人{:modList('User',$_REQUEST['user_id']  )}
		快递{:configList( C('foreignlogi'),$_REQUEST['logi_id'],'logi_id' )} 发货状态{:configList( C('shippingStatus'),$_REQUEST['status'],'status' )}
		<input type="text" class="search-query span3" name="customer" <notempty name='_REQUEST.customer'>
        <php>echo 'value="'.urldecode($_REQUEST['customer']).'"'</php>
        <else/>
        placeholder="客户"
      </notempty> >
		<input type="text" class="search-query span4" name="keywords" <notempty name='_REQUEST.keywords'>
		<php>echo 'value="'.urldecode($_REQUEST['keywords']).'"'</php>
		<else/>
		placeholder="发货单号，销售分单号- 运单号，PO号,产品"
	</notempty>
	>
	<input type="submit" class="btn btn-primary" value="搜索">
	</form>
	
</div>
<!-- 功能组区域结束 -->
<php>
    function detail($id){
    echo ('<a href="__APP__/Order_detail/index/order_id/'.$id.'">销售明细</a>');
    }
    function toOd($time){
    echo toDate($time,'Y-m-d');
}
</php>
<!-- 列表显示区域  -->
<div class="list" >
<div class="btn-toolbar">
  <div class="btn-group">
    <?php $ods = C('shippingStatus'); ?>
  <foreach name="ods" item="vo">
        <a href="__URL__/index/status/{$key}" class="btn"><i class="icon-th-list"> </i>{$vo}</a>
    </foreach>
  </div>
</div>

<div id="result" class="result none"></div><html:list id="checkList" pk="id" style="table table-bordered table-striped" name="action" checkbox="true" action="true" datasource="list" show="id:编号|4%:edit,mano:发货单号,customer_info:客户,weight:重量,total:货值,logi_id|getConfigVal=Foreignlogi:物流,logi_no:运单号,information:物流跟踪信息,customs_declaration:海关申报内容,customs_declared_value:海关申报价值,user_id|getModelName=User:经办人,status|getConfigVal=shippingStatus:状态,create_time|toDate:发货时间" actionlist="edit:详情:id" />
</div>
<!--  分页显示区域 -->
<div class="page">{$page}</div>
<!-- 列表显示区域结束 -->
</div>
<!-- 主体内容结束 -->
</div>
<include file="Public:footer"/>
<script type="text/javascript">
	function toshipping(){
		location.href="__URL__/toshipping";
	}
</script>
<load href="__PUBLIC__/Js/My97DatePicker/WdatePicker.js" />
